package com.chatdating.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("comments")
public class Comment {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long postId;      // 关联的帖子ID
    private Integer userId;   // 评论用户ID
    private String userName;
    private String content;   // 评论内容

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
}
